My Revision Notes: OCR GCSE: Computer Science by George Rouse
Author:George Rouse [Rouse, George]
Language: eng
Format: epub
Publisher: Hodder Education
Published: 2017-04-26T16:00:00+00:00
Example
For the list:
Searching for C:
C in lower half of the list so we discard the top half.
C is later in the list than the midpoint so we discard the lower section of the list.
position 2
item C
We have now found the target value at position 2.
Standard sorting algorithms
Bubble sort
A bubble sort is the easiest sort algorithm to understand but it is very inefficient.
• Start at the beginning of the list and compare the first two items.
• If they are in order, fine.
• If not swap them over and record the fact that a swap has been made.
• Now look at the next pair, the second and third items.
• Repeat this procedure until you get to the end of the list.
• If you have made a swap then start again at the beginning.
• Repeat this until you do not make a swap on a complete pass through the list.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
| ASVAB | GED |
| GRE | NCLEX |
| PRAXIS | SAT |
| See more | Flash Cards |
| Study Guides | Study Skills |
| Workbooks |
Talking to Strangers by Malcolm Gladwell(13222)
The Compound Effect by Darren Hardy(8808)
Tools of Titans by Timothy Ferriss(8215)
Wonder by R. J. Palacio(8007)
The Lover by Duras Marguerite(7821)
A Court of Wings and Ruin by Sarah J. Maas(7648)
The Circle by Dave Eggers(7035)
Deep Work by Cal Newport(6877)
Kaplan MCAT General Chemistry Review by Kaplan(6866)
To All the Boys I've Loved Before by Jenny Han(5771)
Wiseguy by Nicholas Pileggi(5669)
The Body: A Guide for Occupants by Bill Bryson(4974)
1,001 ASVAB Practice Questions For Dummies by Powers Rod(4450)
Eat That Frog! by Brian Tracy(4432)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(4224)
Pre-Suasion: A Revolutionary Way to Influence and Persuade by Robert Cialdini(4144)
Barron's AP Biology by Goldberg M.S. Deborah T(4096)
ACT Math For Dummies by Zegarelli Mark(3985)
Alive: The Story of the Andes Survivors by Piers Paul Read(3967)